package com.zhike.b2b.task;

import com.saas.biz.productMgr.ProductInfo;
import com.zhike.b2b.stock.impl.Stockorderinfo;

import java.util.TimerTask;

public class PublishPageByInterval extends TimerTask
{
	
	
  private static boolean running = false;
  private static int countMin = 0;

  public void run()
  {
    if (!running)
    {
      running = true;
      try
      {
        countMin += 1;
        Stockorderinfo localStockorderinfo = new Stockorderinfo();
        localStockorderinfo.autoCheckBuying();
        localStockorderinfo.autoCheckSaling();
        ProductInfo localProductInfo = new ProductInfo();
        localProductInfo.autoCheckProduct();
      }
      catch (Exception localException)
      {
        localException.printStackTrace();
      }
      running = false;
    }
  }
}

